﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemMHB.Domian
{
    /// <summary>
    /// 物流信息
    /// </summary>
    [Table("Logistics")]
    public class Logistics
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        [Key]
        public int orderID { get; set; }
        
        /// <summary>
        /// 订单编号
        /// </summary>
        public string? orderNumber { get; set; }
        /// <summary>
        /// 采购（外键）
        /// </summary>
        public string? purchaseNumber { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? creationTime { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? paymentTime { get; set; }
        /// <summary>
        /// 物流名称
        /// </summary>
        public string? logisticsName { get; set; }
        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime? deliveryTime { get; set; }
        /// <summary>
        /// 预计到达时间
        /// </summary>
        public DateTime? eTA{ get; set; }
        /// <summary>
        /// 配送时间
        /// </summary>
        public DateTime? orderTime { get; set; }
        /// <summary>
        /// 物流状态
        /// </summary>
        public int logisticsType { get; set; }
    }
}
